package org.lwd.datalink.domain.plugin.reader.mysql;

import lombok.Getter;
import lombok.Setter;
import org.lwd.datalink.domain.Position;

import java.net.InetSocketAddress;

/**
 * @Author: weidong.lin
 */
@Getter
@Setter
public class MysqlReaderPosition extends Position {
    private static final long serialVersionUID = 5530225131455662581L;

    private boolean included;
    private String journalName;
    private Long position;
    private Long serverId;
    private InetSocketAddress sourceAddress;
    private Long slaveId;
    protected Long timestamp;
    private String gtid;
    private String latestEffectSyncLogFileName;
    private Long latestEffectSyncLogFileOffset;

    //影子位点相关信息
    private MysqlReaderPosition shadowPosition;
    private Long shadowId;
}
